package com.lap.auth.application.login.dto;

import com.lap.framework.common.dto.AbstractDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "登录日志数据传输")
public class LoginLogDto extends AbstractDto {

  @Schema(description = "唯一标识")
  private Integer id;

  @Schema(description = "管理员ID")
  private Integer userId;

  @Schema(description = "登录账号")
  private String userName;

  @Schema(description = "姓名")
  private String fullName;

  @Schema(description = "浏览器")
  private String browser;

  @Schema(description = "系统信息")
  private String operatingSystem;

  @Schema(description = "登录地址")
  private String loginIp;

  @Schema(description = "登录区域地址")
  private String loginAddress;

  @Schema(description = "登录状态:0-失败,1-成功")
  private Integer success;

  @Schema(description = "备注")
  private String remark;

  @Schema(description = "耗时,单位毫秒")
  private Long times;
}
